local Class = require('lua.lang.Class')
local UpValueIndexMapper = require('lua.decompiler.virtual.code.mapper.UpValueIndexMapper')

--- @class DefaultUpValueIndexMapper : UpValueIndexMapper
local DefaultUpValueIndexMapper = Class {
	__extends = UpValueIndexMapper
}

--- @return DefaultUpValueIndexMapper
function DefaultUpValueIndexMapper:new()
	--- @type DefaultUpValueIndexMapper
	local o = {}
	return setmetatable(o, DefaultUpValueIndexMapper)
end

--- @param i number
--- @return string
function DefaultUpValueIndexMapper:get(i)
	return tostring(i)
end

--- @param i number
--- @return string
function DefaultUpValueIndexMapper:getUpValueIndex(i)
	return self:get(i)
end

--- @return string
function DefaultUpValueIndexMapper:getUpValueSign()
	return 'U'
end

return DefaultUpValueIndexMapper